All Questions
6 questions
1vote
1answer
2kviews
Java classes to load configuration data from a JSON file, with Scala tests
I want to implement classes in a project that will support the loading of configuration data from a JSON file. The JSON file is in the following form. Please be as critical as you can be. I'm a junior ...
6votes
2answers
234views
Program to calculate some stats from Facebook messages
I've written a program that parses JSON downloaded from Facebook to calculate some stats from a conversation between two parties. It attemps to count these things: Messages grouped by day of week ...
1vote
2answers
153views
Taking some JSON data, converting the date format and calculating a user average
I'm originally a Java developer taking a stab at some Scala development. One of the main reasons I'm posting is because I know that in Scala you can write your code in a Java (OOP) way and it will run ...
19votes
2answers
2kviews
API for looking up Japanese postal code
Most of my experience is in Python, Java and embedded C, and I need to learn Scala and Play for a new job. As an exercise, I decided to create a very simple API for looking up area by postal code, ...
5votes
2answers
7kviews
Parsing JSON to a Map and Set structure
How do I make these line of codes more scala-ish (shorter?). I still get the Java feeling in it (which I want to stay away from). ...
7votes
2answers
7kviews
Handling parsing failure in Scala without exceptions
I have a Scala (Play!) application that must get and parse some data in JSON from an external service. I want to be able to gently handle failure in the response format, but it is becoming messy. What ...